package com.burningtower.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.burningtower.entity.UserRole;
import com.burningtower.mapper.UserRoleMapper;
import com.burningtower.service.IUserRoleService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户角色 服务实现类
 * </p>
 *
 * @author zhe
 * @since 2017-11-17
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Override
    public Long[] selectRoleIdByUserId(Long userId) {
        return baseMapper.selectRoleIdByUserId(userId);
    }
}
